const api = '/api/coupon'
export default {
  //获取订单可用票券
  getCouponByOrderFilm: (...args) =>
    uni.$request.post(`${api}/getCouponByOrderFilm`, ...args),
  //获取用户券包
  getCouponList: (...args) =>
    uni.$request.post(`${api}/getCouponList`, ...args),
  //获取商家列表
  getCinemaBusinessList: (...args) =>
    uni.$request.post(`${api}/getCinemaBusinessList`, ...args),
  //获取商家券列表
  getMerchandiseCouponList: (...args) =>
    uni.$request.post(`${api}/getMerchandiseCouponList`, ...args),

  //获取无效商家券列表
  getHistoryMerchandiseCouponList: (...args) =>
    uni.$request.post(`${api}/getHistoryMerchandiseCouponList`, ...args),
  //绑定券
  bindCoupon: (...args) => uni.$request.post(`${api}/bindCoupon`, ...args),
  //确认核销
  verification: (...args) => uni.$request.post(`${api}/verification`, ...args),
  //核销详情
  getVerificationDetail: (...args) =>
    uni.$request.post(`${api}/getVerificationDetail`, ...args),

  //根据套票id获取可用立减券列表
  getCouponByMallCommodity: (...args) =>
    uni.$request.post(`${api}/getCouponByMallCommodity`, ...args),
  //根据券id获取同一分类下的所有券
  getCouponDetailList: (...args) =>
    uni.$request.post(`${api}/getCouponDetailList`, ...args),
  //根据券id和影票订单id获取同一分类下的所有券
  getCouponDetailListByOrderFilm: (...args) =>
    uni.$request.post(`${api}/getCouponDetailListByOrderFilm`, ...args),
  // 获取券详情
  getCouponInfo: (...args) => uni.$request.post(`${api}/getCouponInfo`, ...args)
}
